<?php
namespace store\minio;

use utils\ConfigReader;

class MinioConfig
{
    public $ak = "minioadmin";
    public $sk = "minioadmin";
    public $service = "s3";
    public $algorithm = "AWS4-HMAC-SHA256";
    public $region = "us-east-1";
    public $endpoint = "192.168.0.111:9000";
    public $bucket = "test";
    
    function __construct()
    {
        $cr = new ConfigReader();
        $this->ak = $cr->readString("Minio.ak");
        $this->sk = $cr->readString("Minio.sk");
        $this->region = $cr->readString("Minio.region");
        $this->endpoint = $cr->readString("Minio.endpoint");
        $this->bucket = $cr->readString("Minio.bucket");        
    }
}
?>